gtksecurememory.c: Port secure memory allocation to Windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 9 Sep 2020 03:37:33 +0000 (11:37 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 9 Sep 2020 05:50:15 +0000 (13:50 +0800)
commit3095bccd2e1cec29bdc346ee7d7fb67f0ccd4dcf
tree7275c53cbe39aeb25d93036b0b64134a59b2d77f
parentc72b2f61673da89488000bad1c983392922cf6a2
gtksecurememory.c: Port secure memory allocation to Windows

Use the Windows API CryptProtectMemory() to encrypt the data that we want to
secure, and use CryptUnprotectMemory() to de-crypt the secured data that we
want to access, since mmap() and mlock() are not available on Windows.
gtk/gtksecurememory.c
gtk/meson.build